package com.wisdytech.linkdcs.equipLifeCycle.check.service;

import java.util.Date;
import java.util.List;

import com.github.pagehelper.PageInfo;
import com.wisdytech.common.bean.Filter;
import com.wisdytech.linkdcs.equipLifeCycle.check.dto.CheckMonthSearchDto;
import com.wisdytech.linkdcs.equipLifeCycle.check.dto.CheckRecordSearchDto;
import com.wisdytech.linkdcs.equipLifeCycle.check.dto.ErrorEqDto;
import com.wisdytech.linkdcs.equipLifeCycle.check.model.CheckDetailRecord;
import com.wisdytech.linkdcs.equipLifeCycle.check.vo.CheckMonthVo;
import com.wisdytech.linkdcs.equipLifeCycle.check.vo.CheckRecordDetailVo;
import com.wisdytech.linkdcs.equipLifeCycle.check.vo.CheckRecordVo;

/**
 * <p>
 *  点检记录服务
 * </p>
 *
 * @author dailibo
 * @since 2018-06-05
 */
public interface ICheckRecordService  {
	
	/**
	 * 保存点检记录
	 * @param records 点检记录明细
	 * @param equipCode 设备编码
	 * @return
	 */
	public boolean addCheckRecord(List<CheckDetailRecord> records,String equipCode,String createUser);
	
	/**
	 * 分页查找点检记录
	 * @param filter 分页参数
	 * @param sDto 查询条件
	 * @return
	 */
	public PageInfo<CheckRecordVo> listCheckRecord(Filter filter,CheckRecordSearchDto sDto);
	
	/**
	 * 获取厂区月度点检不合格设备top10
	 * @param year
	 * @param month
	 * @return
	 */
	public List<ErrorEqDto> listTop10ErrorEq(String year,String month); 
	
	/**
	 * 月度点检记录查询
	 * @param year
	 * @param month
	 */
	public PageInfo<CheckMonthVo> getMonthCheckRecord(
			Filter filter,CheckMonthSearchDto dto ,
			String year ,String month);
	
	/**
	 * 月度点检记录明细查询
	 * @return
	 */
	public List<CheckRecordDetailVo> getMonthCheckDetail(
			String eqCode,String checkItemCode, String year,String month,String day);
	
}
